<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
</head>
<body>
	<script>
		let arr = [1,3,5,2]

		console.log(typeof arr) //object

		let obj = {
			name:2
		}
		// 判断是不是数组
		console.log(Array.isArray(arr))
		console.log(Array.isArray(obj))
		console.log(obj)
		arr.forEach(i=>console.log(i))
		obj.forEach(o=>console.log(o))
	</script>
</body>
</html>